package com.bawei.home.ui

import com.bawei.home.R
import com.bw.lib_mvvm.entity.SimpleVideo
import com.bumptech.glide.Glide
import com.bw.lib_mvvm.entity.BaseVideoEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class HomeAdapter(list: MutableList<SimpleVideo>):
BaseQuickAdapter<SimpleVideo,BaseViewHolder>(R.layout.simle_video_home,list){
    override fun convert(helper: BaseViewHolder, item: SimpleVideo) {
        helper.setText(R.id.simle_tv,item.title)
        Glide.with(context).load(item.videopath).into(helper.getView(R.id.simle_iv))
    }
}